<table border='1'>
	<tr>
		<td>id</td>
		<td>employee_id</td>
		<td>username</td>
		<td>first_name</td>
		<td>last_name</td>
		<td>gender</td>
		<td>birthday</td>
		<td>country</td>
		<td>city</td>
		<td>street_address</td>
		<td>mobile</td>
		<td>schedule_days</td>
		<td>schedule_time</td>
		<td>role_id</td>
	</tr>
<?php
function to_array(SimpleXMLElement $xml) {
	$array = (array)$xml;

	foreach ( array_slice($array, 0) as $key => $value ) {
		if ( $value instanceof SimpleXMLElement ) {
			$array[$key] = empty($value) ? NULL : toArray($value);
		}
	}
	return $array;
}

for ($counter = 0; $counter < count($raw->contact); $counter++)
{
	echo '<tr>';
	
	$length = count($raw->contact[$counter]);
	$keys = array_keys(to_array($raw->contact[$counter]));
	
	for ($c = 0; $c < $length; $c++)
	{
		$key = $keys[$c];
		echo '<td>' . $raw->contact[$counter]->$key . '</td>';
	}
	
	echo '</tr>';
}
?>
</table>